import React from 'react'
import {Suspense} from "react"
import {useRoutes} from "react-router-dom"
import routerConfig from '../router'
import Myheader from '../components/Myheader'
function App() {
  return (
   <>
   <Myheader></Myheader>
   <Suspense fallback={<div>...loading</div>}>
       {
           useRoutes(routerConfig)
       }
   </Suspense>
   </>
  )
 
}

export default App